using System;
namespace IcsSEMCtrl.Com.FieldBus
{
	public class DriverConnectionString : GenericConnectionString
	{
		public const string RETRY_COUNT = "RETRY_COUNT";
		public const string TIMEOUT_SECOND = "TIMEOUT_SECOND";
		public const string IP_SIM = "IP_SIM";
		public const string PORT_SIM = "PORT_SIM";
		protected override object GetValue(string sName, string sValue)
		{
			object result = null;
			if (sName != null)
			{
				if (!(sName == "RETRY_COUNT"))
				{
					if (!(sName == "TIMEOUT_SECOND"))
					{
						if (!(sName == "IP_SIM"))
						{
							if (sName == "PORT_SIM")
							{
								result = sValue.Trim();
							}
						}
						else
						{
							result = sValue.Trim();
						}
					}
				}
				else
				{
					result = Convert.ToInt32(sValue);
				}
			}
			return result;
		}
	}
}
